package com.mf.entity.dto.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author: lmf
 * @Create: 2024/9/20 14:17
 * Description:
 */
@Data
public class DeptAndPositionDto {
    @Schema(description = "id")
    private Integer id;
    @Schema(description = "名称")
    @NotBlank(message = "名称不能为空")
    private String name;
    @Schema(description = "所属上级")
    private Integer pid;

    @Schema(description = "1部门，2：岗位")
    @NotNull(message = "类型不能为空")
    private Integer type = 1;

    @Schema(description = "管理Id(部门：负责人id,岗位所属部门id)")
    @NotNull(message = "管理Id不能为空")
    private Integer managerId;

    @Schema(description = "备注")
    private String remark;
    @Schema(description = "排序")
    private Integer sort;
}
